﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sunny.UI;

namespace SmartMotion.Core
{
    public class ParaPage : Attribute
    {
        public ParaPage(Type type)
        {
            PageType = type;
        }

        public Type PageType { get; set; }

        public UIPage GetParaPage(ActionItem actionItem)
        {
            var page = (UIPage)Activator.CreateInstance(PageType, actionItem);
            return page;
        }   
    }
}       
    